package com.ruoyi.system.service;

import java.util.List;
import com.ruoyi.system.domain.SysYongyouXsht;

/**
 * 销售合同Service接口
 * 
 * @author SYF
 * @date 2025-04-18
 */
public interface ISysYongyouXshtService 
{
    /**
     * 查询销售合同
     * 
     * @param orderdetailsFirstupcode 销售合同主键
     * @return 销售合同
     */
    public SysYongyouXsht selectSysYongyouXshtByOrderdetailsFirstupcode(String orderdetailsFirstupcode);

    /**
     * 查询销售合同列表
     * 
     * @param sysYongyouXsht 销售合同
     * @return 销售合同集合
     */
    public List<SysYongyouXsht> selectSysYongyouXshtList(SysYongyouXsht sysYongyouXsht);

    /**
     * 新增销售合同
     * 
     * @param sysYongyouXsht 销售合同
     * @return 结果
     */
    public int insertSysYongyouXsht(SysYongyouXsht sysYongyouXsht);

    /**
     * 修改销售合同
     * 
     * @param sysYongyouXsht 销售合同
     * @return 结果
     */
    public int updateSysYongyouXsht(SysYongyouXsht sysYongyouXsht);

    /**
     * 批量删除销售合同
     * 
     * @param orderdetailsFirstupcodes 需要删除的销售合同主键集合
     * @return 结果
     */
    public int deleteSysYongyouXshtByOrderdetailsFirstupcodes(String[] orderdetailsFirstupcodes);

    /**
     * 删除销售合同信息
     * 
     * @param orderdetailsFirstupcode 销售合同主键
     * @return 结果
     */
    public int deleteSysYongyouXshtByOrderdetailsFirstupcode(String orderdetailsFirstupcode);

    public int deleteByDateRange(String startDate,String endDate);

    public List<SysYongyouXsht> selectSysYongyouXshtListByDateRange(String startDate,String endDate);
}
